Bunch of stuff

refactored script into a class
tried to push to github, it failed, overwrote a bunch of work
cleaned it up as best I could, still running into issue.