Code for the SNO+ SMELLIE Calibration System