Added argparse support

Added argparse support to handle command line arguments better
File IO improvements

Added output filename auto-generation and file existence check logic