Refactor doc to documents