Add directory processing to SentenceClassifier + Refactorings