Improve error handling.
Bugfix: include pem file in rubygem
improve readme