added the validness of parameters input by user.
added the validness of parameters input by user.

arcusfelis/wrangler,andrzejsliwa/wrangler,arcusfelis/wrangler,tdb/wrangler,prowessproject/wrangler,bsmr-erlang/wrangler