added ability to 'map' over word generators in I/O file