finished pgp part. tests are on the way.