added support for generating html as well
renamed file to better reflect functionality