path tracing almost completed
some minor bugs remaining and will be debugged soon