Implemented most instructions except I/O, I'll tackle those later.
Initial commit of main program code.