improved renderering performance
clean up and java document