An automated superconducting magnetometer and demagnetizing system