updated README and added example