add documentation for using functions