Finished refactoring and cleanup, beginning new lua module wrapping implementation