add comment to most of the function ad class