cleanup docs and unused code