Added preliminary algorithim for scanData and scanDict functions
(flowchart is still incomplete).