added example, fixed issue with save()