Fix spacing issues in __init__.py
Move all of the argument parsing and action handling into a class

This makes the main function much simpler, as it does not have 10
different if / elif statements in it to run the correct actions.