Small changes

Code commented, renamed some variables.