code comments added.