Added comments/documentation.
Minor changes/beautifications.