add copyright information, format the codes