Modernization of Flux-gate Magnetometer