Data matrix builder preliminary, still needs some cleaning