Added comments.
Added comments/readability changes.