Update to density calculation and added cleaner thread
Documentation, BTree lock, density calculations
minor changes to density calculations
minor docs