code and documentation debugged