Slighty modification of partially linear function

Partially linear function is now nondecreasing
Better comments