Refactoring codes: pages -> weight for word

Upgrade config manager.