Removed some debug code, improved windows and fixed shadow artifacts