compiles again
Also store the bitlength.

Changes all over the code.
done for today