Improve Logging

Working on #13
Add a log decorator to enable excessive debug log.