Removes debug code
Fixes documentation