no warning: unused variable 'all'
is_learn is always true here (line 409 checks it)
Merge pull request #462 from martinpopel/cleanercode

Cleaner code