jackknife: added documentation + cleaned up