fixed the indentation problems in main.cpp. Main.cpp still looks terrible and needs to be modified quite a bit...