Cleaned main.cpp