Fix docs and speed up allocation of sparse A