code format and copyright update