added a file,and fixed some bug