added licensing information and head comments