Issues #6 and #19

filenames are set by variable names, and the I/O error is fixed by
commenting out the last bit of code which runs after the episode file
closes (which is what was causing the I/O error)