Added some comments, and tidied some of the extra code for the article titles