Added Reg class and documentation to template