Argparse improvement

Reworked argument parsing to not be global. Preliminary testing complete here, some additional testing would be appreciated!