all tests passing with the refactored code
deleted old tests, fixed up addFunction notifications
delete pre-refactoring code, tweaks to get closer to working as before (almost there, but not
quite)