Cleaned up code, added generation of category pages and home page, added processing steps to enhance HTML.