Added better argument parsing and completed config

Used subparsers for arguments and completed the config
subparsing process.