Updated documentation and removed debug