Added comments.
Simplified  assignment.