Added comments and revised code style for HMC5883L library