Removed unused variables
Modified HostRunner
Added sendTrigger test
Fix bugs in sendTrigger