Fix bug in ddlib.
Add generic feature library
Merge branch 'develop' into release-mindreader