Fixed train(); added training example.
Fixed train(); added training example.