Checkstyle changes and adding Apache license