Fixed minor syntax warnings

Strings use single quote ('string'), not double quote ("string").
Missing semicolon added.
Fixed mistyped variable and multiply defined variable.