Added localStorage saving

All current results now automatically save to localStorage. Reset
button clears the localStorage and resets all variables
And minor fixes to localStorage saving