[mod] doc, refactor