change of variable names and addition of comments