added apache license to sources