insertBits implmented and tested to be functional