Adds function documentation as comments.