better examples
minor refactoring, STATS still has problems