added updatebookeepingvars function
added sbm AndSum function and test
fixing up sbm tests
adding overlap calc functions and tests