Further updates to cooper code -- nearly working ! Also, fix BODIES and JOINTS maps, and draw joints in opengl.