Added profiling functionality to runloop, improved some doc