working version of code

Fixed distributed cache on anchorgraph.java so that it finally works