added reference to train example (it was already in the class definition
too)
fix typo in error message
removed import of deprecated class