changed metadata variable from title to maintitle to fix title/date prose errors
merged