improved readme and added example