profiling suite and some more generic programming
formatting
Merge pull request #3 from zrathustra/profile

Profile