added lots of comments

added comments