move debug flag to the normal options object (fixes Issue #307)
update changelog (fixes Issue #308)