Cleaning up doc structure.