refactoring.
Updating docu
Updating docu
Replacing ref_ptr::manage with ref_ptr::alloc functions.