Get the key only if it exists.
Set a default data location if one is not specified.

Fixes #25.