Add support for customizable filenames

Fixes #35.