updated documentation, included a training example