fix typo
fix scope in a bad example
missing space
arg is deprecated in 5.1, gone in 5.2
fix Lua syntax