move stuff related to page generation to doc-generator class
update todos