catch errors in mockLocalStorage.getItem
update demo documentlist
refactor loading and saving of stats
update design of demo