Add doc strings and comments.