finished writing all functions

still need to test all of manager thoroughly, will do after I get
sufficient testing data inserted. tomorrow.