updated example and readme with new variable names for clarity