correcting type in readMSEEDBuffer

and refactoring, see #678