Struct and main function fixes. Derp fix at refraction function