Big improvement for the framework
add more features into the framework and then fixed some bugs ,remove duplicated code to make it work better.
add more features into the framework and then fixed some bugs ,remove duplicated code to make it work better.