Comments added and extra code removed.