added package and made publickey() public
changed scalarmult() and expmod() from recursive to iterative
made functions public/private
deleted test.java