refine code, replace if with when
update index generation logic: generate index of entire site, not for sub systems.
update function descriptions
update op/generate-uri