added barDiffplot and unpackEllipse, which doesn't yet work.