Fixed some bugs in the interpreter
Fixed incorrect left shift behaviour
Further fix to left shift
Switched left shift for right shift
Remove debug prints from flags
Separated concerns between derivative state and operation