Upgraded createModel with:
	optimized model creation, model based, iteration through depth

other things