fixed a bug that I would have known about had I run my tests, so also did some refactoring of files and test, and implemented a pre-commit hook for testing
forgot to actually add the pre-commit hook to the commit last time