Updated package with function markDirectory