to dict2txt added names argument