More comments added to code