Fixed syntax errors

Hey, I fixed some minor syntax errors, and changed the scoping variable to something shorter and more standard.