Clean linting errors and some minor fixs.

* Remove obsolete setID().
* Add instance as a member variable for Builder.
* Add class documentation.
* Clean linting errors.
Also clean some linting errors