Refactor documentation