Changed DetectorDAO to be an interface that's now implemented by MongoDetectorDAO. Fixed extension of FunctionLibrary.