add some debug and assert flags in debug mode
Merge pull request #153 from jakobkroeker/dan.master.add.assertion.flags.in.debug.mode

add some debug and assert flags in debug mode