added a flag for turning on a profiler.
Merge pull request #65 from bcoe/profile

Added profiler so that we can test for memory leaks when developing