Added docstrings to the training-set generating routines.