adding localstorage demo & a few common errors