Working 0.1.2 with class cleaned up

Saving state don'T work

onsave restore test