Cleaned and commented the register name script