adds memunit column to output file