removed doxy for dropped parameter
moved global variables from header to c file
added a number of small fixes and mutex unlocks when returning from functions
added a test for some base functions of the RIB