Replaced variables
Fixed a bug in the default value of modelDims
Fixed the type of y
Added boundary checks