Started refactoring. Created cabal package, sandbox environment, and started putting things in piece by piece.