refactoring and adding in unit tests
added in localstorage service
created transform util