Parsing Commands

Adding parsing commands to main()