Improve code quality, get ready for deployment

Add checkstyle configuration.
Modified code according to checkstyle recommendations.
Prepare deployment to OSSRH.