Added license header to Java files