Moved ncndists from base class to derived classes. Adjusted constructors.