A repair manual should be the first thing you should get. You will find this to be the most used and important tool you will ever own. The Clymers or Haynes books are good, the Factory Manuals are better. I have shopped Ebay and have all the Factory books and suppliments to cover the 70-80 years and have the 80 up suppliments downloaded to my computer. Over at The Garage they have links to all the factory books for download.
Biker.net has them too. I like having a real book in my hands, but you can read the books on your computer and print out pages as you need to take to the bike.
If you look up at the top of the page you will find an XS650 TECH button, click it, scroll down the list to the Maintainance and General Troublshooting, read the Buying guide, getting to know your bike.
This is a good place to start.
The rest of the TECH section will lead you to more specific subjects.
Leo