Added requirement that gui elements are not clickthrough while being adjusted. Fixed issues with multiple registered event handlers of the same kind. Removed debugging code.