Fixed #152 - Log error when multiple licenses are detected. In addition,
this commit also removed some dead code and comments.