updated readme to reflect function added to example