Coding style fixes. Added comments.