refactor primary package with a sub-package so docs render nicely
refactor package to main so that executable compiles
forgot to import packages correctly into test file
slight package refactoring
fix parameters file overwrite issue