Profiler now draws plots (very basic), various small fixes.