Matlab: Added matlab code for surface ducts and analytic wedges.
refraction_test: Added surface duct test to refraction_test
wave_front: Corrected caustic logic to 'AND' and not 'OR'
various housecleaning changes to remaining files.