Rewrote HMC5883L library to support init/refresh format