implement close(callback)
fix samples
add README and LICENSE