correctly parser command line options in main.cpp
some ui improvements
unused