add updateStack function
add restartController function
Merge pull request #3 from poupotte/master

Add updateStack function