changed persistence to simpler object serialization. optimized gui.