more robust timing structure, cosmetic fixes

renamed stackprof to treeprof
new timing structure now actually works, beginning to add summaries