Fix #137:  default key based on filename.

When no key is passed, guess it based on the basename of filename, as required by docstring.

See #137