Adding documentation to existing code