Removed closing php tag from lib and pages

Removed the php closing tag and cleaned up white space at end of file.

Tested the rss links and currently they look like they are working here.