add init files

basic leaf parse already okay
add lib

add library need
code 1st refectory
2nd refactory