added cache support
added caching
caching, threading improvements, boxes, sphere fixes
merged