More changes to main.cpp

Added documentation, removed more unnecessary code
Reset version to 0.1