Created a proper launcher and fixed runtime errors from refactoring

We now have a script that just imports and runs the needed module which
is preferrable to the old way of having the code all there.