Fixed bugs, implemented two forgotten instructions.