throws synchronous errors instead of returning them fixes #38 fixes #42
whitespace and minor code style cleanup
Merge pull request #50 from aoberoi/fix-error-handling

Fix error handling