correctly handle partial writes
finalize and integrate SSL support
increase rate calculation precision
automatic sampling interval calibration