fixed full TE, added initial and boundary conditions as well.