Fixed boolean literals to correctly place 0 or 1 into the register. Fixed boolean literal tests - not sure if they are proving a correct implementation however.
Fixed not implementation