shorter version + remove unspecified output (double newline, case number)
Merge pull request #1 from wildanr/master

shorter version + remove unspecified output (double newline, case number...