Added event emitters for debug output
1.3.0