Added a whole bunch o' code

This should be reasonably Turing complete