Removed debug code from PacketResearch
Cleaned up WorldEnvironment code a bit
Reformatted code