Added a string formating utility function.
Implemented glClipPlane*.
Remove warnings about depricated printf functions.
Fixed bugs in setting light parameters.