fixed a lot of checkstyle and missing license header problems