Added open/save file function