resent changes 

I just got all the commits from ronnie on the master and merged the check_bit brach to it. So we get actual snapshot of what's done with the decode_all_bit and error calsses