Add cross-section function, and some docs.