Basic Scan Checks in place

Still needs work, but I want a snapshot so I can pull out
The detect encoding function