Add enum to control saving state
Merge branch 'master' of github.com:alexanderedge/SwiftGradients