Added SNR calculations to dwiGet, with correction for small samples.

Please let me know if this seems not to break anything.