Modifed ProfileWriter class.
Now, uses jfreechart library to create plots.