made runnable
Made actually work, fixed a bunch of bugs, added a bit of output