add logging
Merge pull request #23 from xduo/staging

Add logging