Added subtraction and some deterministic wallet stuff
replaced PRIVDERIV with PRIVATE and PUBDERIV with PUBLIC for simplicity