added config and local storage, finished with all business-logic of application