Add checkstyle and improve documentation.

* Improved README.
* Added checkstyle and existing errors were fixed.