added a main function
added a subparser
completed main function