Update documentation and remove unused debug lines