add an epsilong on init prev to avoid -inf in u
Merge branch 'master' of github.com:cbarbu/spatcontrol