Fixed some logic in the parameter validation method

Also, updated the README