Adding checkstyle; cleaning up Main.java and Component.java