Add .gitignore file.
Improve check script.
Fix all luacheck warnings.