updated this to include arguments and read trigger def file
added comments