add custom messages
change to array() syntax for php<5.4
Merge pull request #2 from midraal/feature/custom_messages

add custom messages