added apache license text to code files