explanation and minor tweaks