docs: Fix ts-lua docs style & formatting

Add a license, fix the headers and add formatting for code.
outstanding: document configuration