add sanity tests
add doc stuf