Documented the functions

A question has arisen, should the commands function
be split into several functions?