fixed constraints definitions;
added stop and resume buttons to the gui;