added validation checks
Merge pull request #21 from inaka/hernan.message_checks

Adds validation checks for messages
Merge pull request #15 from HernanRivasAcosta/master

Parity