Actually fixed bug in clean_scan.
Added closest point function. Fixed minor typo.
Completed detector node.