fixed references in the fileformat section, cleaned up formatting to match PEP8