added localStorage file to readme
added localStorage demo
implemented the init method for localStorage