Extracted the code for printing out the call graph.
Avoided the creation of a folder.

This commit belongs to issue #58.
Dumped the call graph to a file instead of stdout.

This commit belongs to issue #59.
Dumped the heap graph to a file.

This commit belongs to issue #59.