Modify connection level model
Almost done
fix a lot of bugs. beta version.
beta 1