Make sample rate configurable from Profiler#stop and add documentation.
Fix small bug.