added apache license comment to code