Cleaned up debug modifications and fixed a few pawn bugs.
Fixed ep counting.