Fixing bug in Victor Purpura dist calculation.

Though, I couldn't provoke a wrong result (but let's be on the safe
side).
Kernel documentation.
Being more precise on errors in a referenced paper
No default sampling rate.
Tools module collecting funcs from other modules.