Moved main menu rendering method down and improved on a few variable names.
Separated rendering of main parts (header, content and footer) and the small parts they consist of as 'widgets'.