cleaned up citations and code