the derpest of tests
code cleanup, documentation, comment rectification