Better handling of (co)homology computation in selected dimensions only. Various cleanups and documentation of (co)homology stuff.