improve the auto init model
add create doc