Document existing code