add copyright to stat header, remove lines in groovy