Changed readme and some parameter validation