fixed variable scoping and added article title/year