Refactored documents layout, and som some content header stuff