Adding Cg libs.
Small changes for code clarification.