Fixed output filenames and types.
Merge remote-tracking branch 'origin/master'