added apache license to various files