Made log path for csv logger optional
Refactored out getPredictedField