renaming, scan-unique -> scan
formalizing names
adding documentaiton