rewrite die as croak
Improve documentation on NewKey/RefillItems