Signing functions getting more correct

Weird bug in sign-message
Small updates in other files
PGP is abstract