moved all functions to docstrings, to make access by programs easier