sim.py allows for negative indexing. snell's law added to thinfilmoptics.py