DOC/ENH: typo and closing a file better now