updated reference to algo.train to algo.training
updated example to use "ing" form of method names