Improved messages
Added check for conflicting signatures
Refactored Main