Added variable selectedDirectory

Private File; added getter and setter as well