Closes #23 check for local storage