docs for functions in #187, once that issue is finished
docs for functions in #187, once that issue is finished