Changed error and covariance calculation; made nu_out option; minor other tweaks,