Moved registration of news and references for the home page query out into functions.php. Refactored the function that enabled custom archive pagination.