Added text writer.
Added missing licence text to htmlWriter.lua.
Fixed function that reports errors in the text structure.
Added help for -o and --output CLI options.