Added support for catching exceptions and hence find entry and exit points.
Added a bunch of code-coverage test cases, and scripts for dumping the info.