moved all functions pertaining to config files and argument parsing to config.py and args.py respectively