adds dependencies, adds comments to html