Fixed implicit variable declarations and unneeded commas.