Few modifications for lua testing
Fixed copyright. Fixed forward declaring references. Fixed benchmarks.