docs
docs and refactorings