* moving some of the commonly used bit reading/writing functions