add typeOut option

Add way to set output file type if the filename can't contain such information