Fix message signing
Merge pull request #5 from Hartland/master

Fix message signing