added optional colnames argument to eformat