Modified save and implemented open