auto-save and async saving implemented,...

minor code tweaks