Allow cfg.py to be imported as a module
Added text generator HTML