Optimized regular expressions, simplified brief handling, and slightly improved help message.