add changes from LyV

1) change self.log to app.log
2) initialize self