modifications to rendering and some fixes to NN
three bit number detection.