add documentation for the current code