changed CreateGeometry to accept arrays for eps and fprof