Update main.cpp

Addes a usage function to it with more comments and also stop this program if it has paramters.
fix spelling mistakes, fix style guide, fix #5
fix compiler warnings
Merge branch 'nedron92-master'