added explanation to dir usage in examples