Improved error handling.
Add basic usage instructions.