Improve docs and refactore std::os.