Added localStorage for persistence
Merge pull request #1 from Ask11/improv

Added localStorage for persistence + refactoring