Scan Controller and JSON Issues

...also added some mongo logging