Added command line parameters to tool.py