Added profiling functionalities. Fixed compilation.

A profiling file can now be specified, timings for each task will be
written to this file.
Added plottasks.py script to visualize timings.
Added namespaces in missing places.