beautify code and update license