added copyright and apache license header to all source files