Disable debug by default
Allow error flags to be customized
Fix tests
0.6.4