Add dir functions
Merge branch 'master' of github.com:mks65-dw/reference