Log
Implement checkValidRegister
Add bounds checking to all register instructions