cleanup in docs and curry some stray functions