Added control for valid target
Throw an InvalidArgumentException if target is not provided
Merge pull request #27 from dymissy/envmessage

Added control for valid target