Some minor tweaks, plus documentation for API parameters.