cosmetic changes in smooth approximation functions
update of a stochastic replanning example

requested by Luis Santos