fixed save() + minor enhancements

Signed-off-by: Thibaud Arnault <thyb@oauth.io>