remove unused code.
add an example and improve the readme.