A working version

Its spits out results
yet very slow
still needs some fixing
-

-
-
-