more docstrings for the helper functions in nntools/layers/base.py