Add .luacheckrc and remove some unused variables