Implemented the high level calculation routines

The binary for creating high level stuff isn't available yet, so I dummied that out, but implemented and tested the rest.
Ack, wait, no it doesn't :( I was thinking of the git version. Disregard.