use single-quotes rather than double-quotes
check incorrect data-length via try/except

rather than explicitely handling that.
the try/except block is executed anyhow, so tere is no need to do an extra
"if"
implemented readChar and readMIDI