Now using luar to improve lua integration
Improved lua handling
Cleaned up a little