Added comments and changes for printing the combinations