Merge pull request #1 from odeke-em/master

Detecting if API key file is regular before opening it, as well as checking for read access permissions.
fix error messages