added apache licence header comments