code commented and readme file updated