Linked new scan API to the GUI. Fixed unit conversion errors in scans.py.