implemented directory reading; next step is testing :)