cleaned up argument directory validation
cleaned up output