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

Addresses #469.

2010-2014