checkValid now works, some speed improvements (but still slow)

 - checking the validity of a signature now works, but is slow
 - now using bcpowmod to make expmod faster
 - generating a signature only gets the first half of the signature
   correct currently