Documentation and TODOs, and some parallelization changes.