Update documentation; Remove debug code