restructure document so that sections appear in different files