preprocess : add docstrings for functions and class.