fixed more syntax errors

and logic errors, changed given params to zero