add example script, also update readme with example