Fix indentation, remove unused variable, add parens

Fixed a few issues that vim flagged on save and
make it easier to read the included Lua code.