Changed files organization and added id to chapters and pages