readme: misc changes to example
lib: remove unused function export