Made some optimisations to code, tidied the code and fixed some small bugs in
the news plugin.