Removed unnecessary comments and cleaned up code. Changed an error message to be more descriptive. Added an indicator that the maximum word count is 9.