added partial function generator
Merge remote-tracking branch 'origin/master'