moved head and footer tags, removed section start and end tags, added correct &apm; element