app object and root view added
cleaned code and added logger wrapper