Documentation for scan provided.

Fixed bugs in documentation. 

New documentation for scan.