+Functn.p.quad, +Functn.p.diff, minor bug fixes
merging functn branch