changes to instrument() API.

1) allow for not specifying an output file.
2) allow for generating IID map and .ast.json files