Adding documentation for scan function
Signed-off-by: Ben McIlwain <bmcilwain@ngpvan.com>