Updated processor, fixed bugs
Added new test cases