Made changes on logic to include the uppercase, fixed the min and max of words. Also include comments on the logic.php.