Added some documentation to make the code more readable
Added the registration page.