Display now works but bits inside bytes are displayed in wrong order. Beware messy code!