more clean up of file structure, added support for localstorage backup/restore functionality