General update including code guidelines and images

I've updated the code to comply better with the Moodle coding guidelines and make it (IMHO) easier to read.

I've also moved the feed_icon image to the pix folder to allow it to be themed more easily.