Add possibility to define the file extension
Merge pull request #2 from stefanbuck/master

Add possibility to define the file extension