Adding main parser class

-moving the cmd parser out of the network manager file
-Code cleanup
-removing unneeded imports
gitingnore