swapped variable names to match doc
updated readme