updates on learning module (ERD2014 inspired)
update learning.py with some (ERD14 inspired) tweaks