some cleanup of file.py error messages & other minor updates.

Addresses #469.