implementation of time decoder up to bit decoding
add time decoder testing