Changed class methods to instance methods and utilized argparse for command line argument handling