Converted to proper lua module format. Added simple test
Unused