Neatened it up so at least the site runs - still have issue with atom feed reader