fixed refract method, added collimated beam class and sorted out graphing