Update: add support for filename (fixes #12).
Merge pull request #13 from selaux/add-support-for-filename

Update: add support for filename. Closes #12.