Cleaned the code and added some definitions of registers and addresses