function and example
updated readme