got the crypto math working through inv and expmod

Something in scalarmult is still failing though. Found the trick python pulls with modulus where a modulus of a negative number with a positive divisor gets a positive result and added code to handle that. Also found a couple typos from when I was copying numbers over.