modify encoding and LF, add some notes