Add support for customizable filenames

Fixes #35.
Merge pull request #106 from kevva/filename

Add support for customizable filenames