Using custom trace file

Added new option for custom trace files so users can get their own trace file visualized. 
Yes, thanks. code looks cleaner that way. Updating the pull request...