atkDir implemented

atkDir is implemented, and some things were cleaned to make it work.