completed some work on the make bitfield tuple function I did encounter an error which is going to take some time to fix.