Reformatted and commented source coude; MainMenu

Reformatted and added comments to all source code. The MainMenu has the
beginnings of an assurance system (to avoid losing created but unsaved
Surveys/Tests).