Fix tabs and trailing spaces.
Replace Implements with @inheritdoc.
Clean up incorrect code and add some examples.