minor tweaks and documentation.