added a small documentation header to each function