added debug output
bayer encoding is now case insensitiv
added debug output