Adds simple scan function.
Merge pull request #4 from fnothaft/add-scans

Adds simple scan function.