Scanner implemented

I've implemented the scanner with the foundation for customized path
scanning.