updates

added comments and some new variables.