Cleaning up and documenting.