Added a very basic profiler.  I still need to make it cleaner and put things into their own functions.