Fixed many case pattern matching statements and some help comments.