Documentation and minor tweaks.