changed function and added example ad to readme