Apache license added to code