adding comments

additional comments added to code