Adding formats of analsys output files and explained event chains.

Updated the planning document to show the expected JSON formats for the analysis results.
Added explanation of event chains, local and global.