Fix version in installation guide
Add API error handling
Also improve tests and small pieces of code