Added comments, slight documentation review.