Cleaned up main and fixed compile error in commands.cpp

Took out a lot of commented code in main. Also, added a loop
to destroy any extra contents in the vector. Added semicolons
to a couple lines in commands.cpp