fixed field functions in both TM and TE modes. removed omega as a free parameter. Added phi (theta) dependence to the fields arbitrarily (probably won't be used anyway).