aanpassen addToDirectory (controle of dir == null)