add comment blocks to each function