Removed some debug code

- Removed Debug code
- Added more Documentation