Reformat lua code. Added version and change log into README.tds file.