add comments before functions for documentation