moved item ref in save
fixed trailing comma
added reject on error
added stripPath option to better control hash stripping