Save attributes saving, props @iamunick

Fixes #1