Added some error checking around the getPGP functions. Most users don't have a PGP key defined, and this errors out if it isn't.
Merge pull request #1 from kawalgrover/master

Added some error checking around the getPGP functions.