genral clean up and normalization of lineendings