Added code to run the tool. Still a lot of clean-up needs to be done. Note that the  creates an easy to use GUI but the same can be done in the terminal by just using