Update README

to show a more general usage of the function