Added learning command for TextPro and re-worked TextPro integration (TextPro not tested)