Major cleanup. Imported original code for re-written functions and placed them around a preprocessor; this makes it easy to swap out using F# and C. Removed Fsi code.