Fixed detailProfiler
Added tools/profiletool.py