Make Apache license explicit, add missing copyright headers