Added user logic, prettied html out, resharped code

Added user logic
prettied html out
Refactored code with resharper (still have to set my preferences so it
may change in the future)