correctly calculating number of new links per page
adding .html extension to generated files