Split code into core lib, and a script to run it ( main() ).  Overhauled EVERYTHING\!