Added comments on some variables for explanation. Updated intro comment.