Create main.cpp

cmd line processing functions
Create Makefile
Merge pull request #1 from dimych7/master

Adding the tool's main function as well as the cmd line processing code