Performed automatic formatting and fixed comments.