Logger and test for the maincontroller
Changes