Comments added and useless code removed.
Comments added/corrected.