Adding file formats to template from file

Fixes Bug #804