fix some bug and add dump, load, importance functions