update gitignore
add directory class and adapt other files