Fixed Checkstyle errors. Fixed build setup. Various improvements.