Lua CC Refactoring: Local var names

Refactored names of local Lua variables to make them abide by coding
conventions.
Lua CC Refactoring: Local & method function names

I've changed the names of these functions to make them abide by
the coding convention of having them be camalCase names.