organized function headers, picked a better naming convention for lua-specific functions, and renamed zoom functions