added multi pass rendering psudo and did some cleaning