Added the page generation for generating a complete HTML page
Cleaned up the comments
Added an error page
Cleaned up the page generation and the display controller