fix copyright and code.

Clarify the origins; also add the forgotten initialization of RPLY.
build fixes.
add putPixel method to Surfaces
foundatations of the render script
add generalized scalar product.