Fix debug mode and add stderr output
Bump version to 0.1.6