added doc for cplfunctionvec
removed a wrong condition in cpqfunction