add log messages
Merge pull request #31 from xinwu/master

add log messages