adding comments and also  deleting some useless lines