bugfixes, added update, closed loop
1.2.1