Documented fileScanner, improved existing tests and added tests for
fileScanner