change function creation syntax stuff
Add function to get directory a file is in
almost done with adding directory handlers