Conversion to single HTML files, PDF, or plain text was added. The "dump" option for dumping HTML data from a CHM file into standard output was changed. A huge code re-factoring and lot of small changes and fixes were done. An IOError exception using the CHM dump option, an import error, a broken TOC after decompilation, and conversion of CHM to a single HTML file were fixed. Please note that the conversion function is far from perfect and is likely to have bugs which should be reported.