Added basic registration
Added debug option to MainPage