Minor cleanup; added documentation.