Added 'key' attribute to specify filename

This fixes #11