Replaced unoptimized linq with foreach loop and added Coob reference to World.

Also changed WriteException method to be a bit better (i think).