Fix examples for experiments
Make CodeGen thread safe using synchronized
Fix Java PageRank for Experiments