new version of sign/verify

code has been modified to support changes in part 3 project
specification- some minor cleanup is necessary