Added press trends tracking, php cleanup a bit.