changes to AddNewContract
Fixed many bugs, added Membership class