Removed more debugging
Add documentation