Updating the title and getting the chapters in the right format