Code review for DirectoryParser

Hi Prashant,

I did a little code review for the DirectoryParser. If you have questions let me know.

Sylvain