reformat and apache license added