Rename to .lua and clean up formatting