Added licenses to .java files