adds comments for all functions