fixed timer wrap problem, added 2 new registers to read