Added surface rendering, fixed auto-scaling, and optimized 4D calculations