documentation and indentation improvements based on review.