Fixed bug which caused debug to come as STDOUT. Published 0.3.1