test and diagnose changes, insert of debuging code, partial fix of
featureextraction code.