Added comments, changed variable names