fix crlf
fix tests
all debug and lower logger calls folded into if __debug__:
remove %-formatting in logger calls