Fixed some function comments and typos