formatting tweaks. fixed variable naming in example