Added updateShiftregister function
documentation update