updated test
added usage sample code to README.md