Refactor readHeader into BinaryCursor.header
Refactor more functions into BinaryCursor methods.