Adds signature verification, fixes #8