Added an "end" to the lua tables

This fixed the seg faults
Merge pull request #22 from Meisaka/feature-lua

The table end commit