fixed various problems in ANNWrapper.details()
text interface now ported to ANN and some more fixes to seaching in ANNWrapper