small bugfixes for ht12 parsing and fixes in matrix handling