Fixed some issues with signals handling
Improved debug logging
Added signal data paramater handling