Add function descriptions and additional comments.