elements finished

bugfixing and autosave implemented