Fixed formatting. Added comments.