changed dir in script, fixed function comment check