added comments for documentation
refactored code using .combination method
reworked wording