fix export, add example use in README.md