restructured repo, added localStorage and file existence tests