consolidated both dictionary classes to one that accepts a filename and delimiter