Exposed Lua support functions.
Fixed bug.
Merge pull request #349 from jhorneman/master

Exposing Lua support functions