Wrote implementation of all opcodes. REALLY need some sort of testing code here.