Closes #348 - Clean up ScannerConfiguration and create unit test

Pull request for #348
Recently found Guava method Iterables.getOnlyElement().  It will return the single element and throw exception if there is more than one element, w/ this could remove the previous stmt checking size.   

This is not something I thnk needs to change.  Just commenting.