Fix minor bugs but...

there's some shit to do with bit fields!
And need to fix read/write routines later.