add read/write info to bitfields. Need to check it compiles now.