added APACHE license header to source files