updated shell interactions

shell interactions now use the proper n values for the shell; continuous
n=1 test passed; angles in snell's law section needs to be fixed
minor update

minor extra global variable removed