add symfony console

include and use symfony console output class to print user messages while reading directories
and rename the test function
update the testing function of reading directories