For last commit

Fixed logging little better and added comments in Init and app files.