Fixes documentation and removes debug output