clean up debug function
more debuggery
Clear stateChar before ending extglob

Fixes #21
remove monkeyPatch method

No one uses it anyway (which I know because it doesn't work)
doc: move comparison to bottom