Add definitions of toTypes,strToTypes and toCType
Add more doc comments for CPPType