Created a general Register class
Fixed memwrite to be a string and not a boolean (also added a function
for changing memwrite, dunno why I didn't do this before)