beginnings of a documentation function