Added write and read file, to local storage