Removed some trace statement
Some minor changes and logging added
Expanded the matches and actions structures by individually sending each field in JSON