more docs and fix exported names