Model constructor use docDir and modelDir