Added dir() function

Added dir() function
Merge pull request #88 from gam-phon/patch-1

Added dir() function