Use attr_reader in sdl code. Removed lib SDLMain
Use macros in sample raytracer