Profiler cleanup

Some minor cleanup for profiler. Also added content type for missing html printer.