First version
Added unit test
updated documentation