fix doc grammar error and add license
added handle init state at resize
added comments
fix set value, initValues
fixing init state
split doc, added todo.md