Refactored to access methods through command line rather than requiring using it in python interpreter