Generate filename from title and apply to template

Fixes #17