First implementation of shaders + some other fixes.