Format and add license header