added LocalStorage and CSV functions