Refactor doc