Tweaks and more documentation.