Major fixes. Arms race now works with pH detector.

Fixed the bugs that I created as a result of moving some files around
in my previous check-in. Made sure that pH anomaly detector works with
the GP.