Impoved documentation, organization, and related code tweaks.