Work on validation completed

- consistency check of classifier done
- corrected all segfaults and bad implementations