Various small improvements to logging and error handling. Added license to README. Bumped the version number.