Removed debug output
Added documentation