Profile

Added functionality to profiling module. Show_stats() can now present a meaningfull report of the time spent on each steps.