remove unused stuff and more docs
remove unused deps
add missing exports
docs for heads
test for heads