Fixed bugs in analyze command. Fixed how grouped count query results are displayed. Tweaked analysis output. Added several constraints to reject queries that do not make any sense.