Update function comments and formatted display output in console