Fixed error reporting: #1.
Fixed double groups import.
Merge pull request #2 from mittsh/fix-error-reporting

Fixed error reporting
Merge pull request #3 from mittsh/fix-double-groups

Fixed double groups import.