Got decode tests passing and implemented