Further developed the new passes and implemented a very simple Optimizer. Warning: rendering is currently broken