Fixed some missing declaration bugs as well as added some testing code for sign and verify