Basic model branch in version rc

more to be continued, major of model is implemented!