Made the graphics engine a library
Added samplers