Fixed the lighting and added a lot of debugging functions for rendering models.