Spring add

Add spring framework and some changes to model