Argparse support added. Clean up code. Doc headers to main methods added.
Argparse support added. Clean up code. Doc headers to main methods added.