luacheck currently fails because of missing globals and exceeding line length. To fix this, I add vector and hopper to the globals, add more line breaks in the code and remove outdated comments.