Error fixing and Checkstyle configuration.

Configured check style and fixed checkstyle errors.