added epsilon to the grid search and changed the variable names to be
more intuitive