Moving sections to their own methods and improving documentation