make composer package
add some tests
add some documentation