more docs
removed unused code