work on API + examples; saving state