Code review fixups on 0939fee

* Verify filename is set correctly
* Test with both initializing from a filename and a file obj
* Remove unused local variable creation_kwargs
* Add and reorder some comments for clarity