added usage call if directory isn't passed