Rename write-page -> write-file. Clean up some docstrings.