Add a read file directly function.
update, fix bugs in model_opt.
tiny change
add a sa method.