Cosmetic changes and added documentation.