Fixed bug in trigger

The trigger was not working properly. Altered the trigger string so its all in text block rather than split up. Minor updates to formatting to make things more consistent.