updated unit test
update tests again, and add cursory documentation