added Apache V2 license and boilerplate in source code headers