Fixed bug with decorator

I found that the return value of the profiled function was not being returned. I think I have fixed the bug. The profiled function now returns the return value and things work as expected in my environment.

Hopefully this is useful to others.