update new code and readme

update new code and readme