Refactor a few things, add some documentation / comments.
fix bugs from refactor.
Tidy up namespaces.
Tidy up the view somewhat.
Fix DateTime format not working in firefox.