Added support for daisychained shift registers, switched to using bytes to save memory where appropriate.