cleaned things up and made some improvents to the directories.py file.