update documentation after refactor