Refactor and normalize documentation