Adds encryption signing

Fixes #5

General fixes