Convert all regex.match() to regex.test() calls.
Fix the nested level issues in @media block.
Fix the rule start line issue caused by a comment at the end of the previous rule.
Add JSDoc and comment for the new functions.