Lua refactoring: reformat code and added copyright to ChordsTr.lua