add probability structure
add model load and dump.