added unsuscribe
added local storage functionality
added test file and some other changes