added functionality for controls;
updated the size of the debug window;