Update processOpcode() to use get/set functions

Also changed the main method and header files accordingly.