Update readme with examples
Fix error handling to properly exit