Documentation and code tweaks.