main.cpp logic and argument parameters complete.