features, add unit tests and include sample code in readme file