Added Checkstyle and fixed formatting errors