(updated 2010-08-26) When using rcwa.SetLayer() to change the layer index profile, the profile vect [x1,x2,index] should not be required to be within the periods. Instead, when adding profile out of the range, the program should automatically adjust this. (updated 2010-08-28) The definition of the x direction origin point is not consistant. (working on) When wavelength = n*peroid, sigularity happen.