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.