--- a/trunk/Tools/WorldEditor/WorldEditor.cs
+++ b/trunk/Tools/WorldEditor/WorldEditor.cs
@@ -1,26 +1,19 @@
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
+using System.Diagnostics;
 using System.Drawing;
-using System.Text;
+using System.IO;
 using System.Windows.Forms;
-using System.IO;
-using System.Diagnostics;
 using System.Xml;
-using System.Collections;
-using System.Timers;
-
+using Axiom.Configuration;
 using Axiom.Core;
 using Axiom.Graphics;
 using Axiom.MathLib;
-using Axiom.Configuration;
+using Microsoft.Win32;
 using Multiverse.AssetRepository;
+using Multiverse.CollisionLib;
 using Multiverse.Serialization;
-using Multiverse.CollisionLib;
-using Microsoft.Win32;
 using Multiverse.ToolBox;
-using log4net;
 
 namespace Multiverse.Tools.WorldEditor
 {
@@ -78,7 +71,6 @@
         protected float scaleMoveMultiplier = 1000f;
         protected float cameraAccelerateIncrement;
         protected bool orientationUpdate = false;
-
 
         // mouse motion related variables
         protected bool leftMouseClick = false;
@@ -222,9 +214,9 @@
         {
             axiomControl = new AxiomControl();
 
-            // 
+            //
             // axiomControl
-            // 
+            //
             this.axiomControl.Dock = System.Windows.Forms.DockStyle.Fill;
             this.axiomControl.BackColor = Color.Gray;
             this.axiomControl.Location = new System.Drawing.Point(0, 0);
@@ -232,12 +224,10 @@
             this.axiomControl.Size = new System.Drawing.Size(734, 656);
             this.axiomControl.TabIndex = 2;
             this.axiomControl.TabStop = true;
-            // 
+            //
             // mainSplitContainer.Panel1
-            // 
+            //
             this.mainSplitContainer.Panel1.Controls.Add(this.axiomControl);
-
-
         }
 
         protected Axiom.SceneManagers.Multiverse.ITerrainGenerator DefaultTerrainGenerator()
@@ -301,7 +291,6 @@
                     }
                 }
             }
-
 
             List<string> log = RepositoryClass.Instance.InitializeRepository();
             CheckLogAndMaybeExit(log);
@@ -567,7 +556,6 @@
                 camAccelIncrement = Config.DefaultCamAccelRateIncrement;
             }
 
-
             ret = Registry.GetValue(Config.WorldEditorBaseRegistryKey, "PresetCameraAccelRate1", (object)(Config.DefaultPresetCamAccel1));
             if (ret != null)
             {
@@ -666,7 +654,6 @@
                 presetMWM4 = Config.DefaultPresetMWM4;
             }
 
-
             setToolStripMWMDropDownMenu();
 
             setToolStripAccelSpeedDropDownMenu();
@@ -680,8 +667,6 @@
             xmlWriterSettings.Indent = true;
 
             xmlReaderSettings = new XmlReaderSettings();
-
-
 
             createKeybindings();
 
@@ -700,7 +685,6 @@
             showPathDialog = new ShowPathDialog();
         }
 
-
         private void setShortCuts()
         {
             string[] shortcutsArray = {"worldEditorCut", "worldEditorCopy", "worldEditorPaste", "worldEditorUndo", "worldEditorRedo",
@@ -759,7 +743,6 @@
                         case "axiomDeleteObject":
                             menuItem = deleteToolStripMenuItem;
                             break;
-
                     }
                     if (String.Equals(command.Modifier, "none"))
                     {
@@ -770,7 +753,6 @@
                         menuItem.ShortcutKeyDisplayString = String.Format("{0}+{1}", command.Modifier, command.Key);
                     }
                 }
-
             }
         }
 
@@ -782,7 +764,6 @@
             {
                 try
                 {
-
                     XmlReader r = XmlReader.Create(Config.CommandBindingEventsFilePath, xmlReaderSettings);
                     while (r.Read())
                     {
@@ -1085,7 +1066,6 @@
                     obj.Handler = hand;
                 }
 
-
                 XmlReader xr;
                 string keyBindingsFile = this.Config.AltCommandBindingsFilePath;
                 if (!File.Exists(keyBindingsFile))
@@ -1156,19 +1136,16 @@
             }
             else
             {
-                
                 string dir = Application.ExecutablePath.Substring(0, Application.ExecutablePath.LastIndexOf("\\"));
                 string filename = this.Config.CommandBindingEventsFilePath.Substring(this.Config.CommandBindingEventsFilePath.IndexOf(".") + 2, this.Config.CommandBindingEventsFilePath.Length - this.Config.CommandBindingEventsFilePath.IndexOf(".") - 2);
-                string filePath = String.Format("{0}\\{1}", dir , filename);
+                string filePath = String.Format("{0}\\{1}", dir, filename);
                 log.ErrorFormat("CommandEvents.xml was not found at {0}", filePath);
-                MessageBox.Show(String.Format("The CommandEvents.xml file could not be found at {0}.  The World Editor can not run properly without this file.  The World Editor will exit now.", filePath) , "Could not find CommandEvents.xml", MessageBoxButtons.OK);
+                MessageBox.Show(String.Format("The CommandEvents.xml file could not be found at {0}.  The World Editor can not run properly without this file.  The World Editor will exit now.", filePath), "Could not find CommandEvents.xml", MessageBoxButtons.OK);
                 exitToolStripMenuItem_Click(this, new EventArgs());
                 log.Error("World Editor Exiting now");
                 return;
             }
         }
-
-
 
         public NameValueTemplateCollection NameValueTemplates
         {
@@ -1240,7 +1217,6 @@
             // retrieve the max FPS, if it exists
             getMaxFPSFromRegistry();
             activeFps = Root.Instance.MaxFramesPerSecond;
-
 
             // add event handlers for frame events
             engine.FrameStarted += new FrameEvent(OnFrameStarted);
@@ -1322,7 +1298,6 @@
             }
         }
 
-
         protected void SetupResources()
         {
             foreach (string s in RepositoryClass.AxiomDirectories)
@@ -1335,7 +1310,6 @@
             }
         }
 
-
         protected bool ConfigureAxiom()
         {
             // HACK: Temporary
@@ -1386,13 +1360,13 @@
             viewport = window.AddViewport(camera, 0, 0, 1.0f, 1.0f, 100);
             viewport.BackgroundColor = ColorEx.Black;
         }
+
         #endregion Axiom Initialization Code
 
         #region Application Startup Code
 
         public bool Start(string[] args)
         {
-
             if (!Setup())
             {
                 return false;
@@ -1410,10 +1384,8 @@
             // start the engines rendering loop
             engine.StartRendering();
 
-
             return true;
         }
-
 
         #endregion Application Startup Code
 
@@ -1449,7 +1421,6 @@
 
         protected void CreateScene()
         {
-
             viewport.BackgroundColor = ColorEx.White;
             viewport.OverlaysEnabled = false;
 
@@ -1461,6 +1432,7 @@
         #endregion Scene Setup
 
         #region Map Loading
+
         // load the map (terrain parameters) from the given file
         public void LoadMap(string filename)
         {
@@ -1498,7 +1470,6 @@
                 {
                     if (r.Name == "Terrain")
                     {
-
                         worldRoot.Terrain.LoadTerrain(r);
                         break;
                     }
@@ -1557,7 +1528,6 @@
             ResourceManager.AddCommonArchive(subdirs, "Folder");
         }
 
-
         protected void LoadWorld(String filename)
         {
             bool autoSaveLoad = false;
@@ -1649,7 +1619,6 @@
                 {
                     worldRoot = null;
 
-
                     string dialogStr = "Loading this world failed because the following assets are missing from the current Asset Repository:\n\n";
                     foreach (string s in missingAssetList)
                     {
@@ -1683,10 +1652,8 @@
                     }
                     else
                     {
-
                         if (worldRoot.WorldFilePath != null && !String.Equals(worldRoot.WorldFilePath, ""))
                         {
-
                         }
                     }
                 }
@@ -1738,7 +1705,6 @@
             return root;
         }
 
-
         protected void LoadWorldRoot(String filename)
         {
             bool autoSaveLoad = false;
@@ -1830,7 +1796,6 @@
                 {
                     worldRoot = null;
 
-
                     string dialogStr = "Loading this world failed because the following assets are missing from the current Asset Repository:\n\n";
                     foreach (string s in missingAssetList)
                     {
@@ -1864,7 +1829,6 @@
                     }
                     else
                     {
-
                         if (worldRoot.WorldFilePath != null && !String.Equals(worldRoot.WorldFilePath, ""))
                         {
                             int pathlen = worldRoot.WorldFilePath.LastIndexOf("\\");
@@ -1879,7 +1843,6 @@
             setRecentFiles(filename);
         }
 
-
         public void setRecentFiles(string file)
         {
             string filename = file;
@@ -1908,12 +1871,10 @@
             {
                 Registry.SetValue(Config.RecentFileListBaseRegistryKey, valueNames[i], values[i]);
             }
-
         }
 
         public void UpdateButtonBar()
         {
-
             for (int i = toolStrip1.Items.Count - 1; i >= 0; i--)
             {
                 ToolStripItem item = toolStrip1.Items[i];
@@ -1946,8 +1907,6 @@
             }
         }
 
-
-
         private void setWorldDefaults()
         {
             Axiom.SceneManagers.Multiverse.TerrainManager.Instance.ShowOcean = DisplayOcean && WorldRoot.DisplayOcean;
@@ -1968,7 +1927,6 @@
                 CameraNear = oneMeter / 10f * (float)Math.Pow(10.0f, (double)CameraNearDistance / 20.0f);
             }
         }
-
 
         protected void LoadOldTerrain(XmlNode node, WorldRoot root)
         {
@@ -2097,7 +2055,6 @@
             }
         }
 
-
         protected void LoadOldBoundary(XmlNode node, WorldObjectCollection collection)
         {
             string name = null;
@@ -2231,7 +2188,6 @@
                     }
                 }
             }
-
         }
 
         protected void LoadOldWaypoint(XmlNode node, WorldObjectCollection collection)
@@ -2306,7 +2262,6 @@
             StaticObject obj = new StaticObject(name, collection, this, mesh, pos, scale, rot);
             collection.Add(obj);
 
-
             // process submeshes
             foreach (XmlNode childNode in node.ChildNodes)
             {
@@ -2382,7 +2337,6 @@
             setRecentFiles(filename);
         }
 
-
         // this is used to save backup files
         public void SaveWorld(String filename, bool backup)
         {
@@ -2410,13 +2364,12 @@
             // don't save the manifest file when doing autosave
             saveTimer.Interval = (int)autoSaveTime;
             saveTimer.Start();
-
-        }
-
+        }
 
         #endregion World Saving
 
         #region Skybox
+
         public void SetSkybox(bool enable, string materialName)
         {
             scene.SetSkyBox(enable, materialName, 1000f * oneMeter);
@@ -2430,7 +2383,6 @@
         {
             return;
         }
-
 
         protected void OnFrameStarted(object source, FrameEventArgs e)
         {
@@ -2458,11 +2410,8 @@
                 if (bound.PointIn(camera.Position))
                 {
                     activeBoundaryList.Add(bound);
-
-                }
-            }
-
-
+                }
+            }
 
             if (moveOnPlane && !lockCameraToObject)
             {
@@ -2500,14 +2449,12 @@
                     }
                     cameraStatusLabel.Text = "Camera Status: Camera Maintains Speed";
                 }
-
             }
 
             checkPointAgainstBoundaryList(activeBoundaryList);
             updateStatusBarBoundaryList(activeBoundaryList);
             time += e.TimeSinceLastFrame;
             Axiom.SceneManagers.Multiverse.TerrainManager.Instance.Time = time;
-
 
             // reset acceleration zero
             camDirection = Vector3.Zero;
@@ -2678,7 +2625,6 @@
                 camera.MoveRelative(new Vector3(deltaX * 1000f, deltaY * 1000F, 0f));
             }
 
-
             if (moveCameraUp && !lockCameraToObject && !moveOnPlane)
             {
                 camera.Move(new Vector3(0, oneMeter * cameraUpDownMultiplier * e.TimeSinceLastFrame, 0));
@@ -2688,8 +2634,6 @@
             {
                 camera.Move(new Vector3(0, -oneMeter * cameraUpDownMultiplier * e.TimeSinceLastFrame, 0));
             }
-
-
 
             if (!lockCameraToObject && !moveOnPlane && (camDirection.x != 0f || camDirection.y != 0f || camDirection.z != 0f))
             {
@@ -2721,7 +2665,6 @@
             //    }
             //    camVelocity *= decel;
             //}
-
 
             // keep camera at least 2 meters above ground
             float heightUnderCamera = GetTerrainHeight(camera.Position.x, camera.Position.z);
@@ -2840,7 +2783,6 @@
             }
         }
 
-
         private Boundary findBoundaryListPriority(List<Boundary> boundList)
         {
             int topPriority = 101;
@@ -2860,7 +2802,6 @@
         {
             scene.SetFog(FogMode.None, null, 0);
         }
-
 
         public WorldTreeNode MakeTreeNode(IWorldObject obj, String text)
         {
@@ -2890,7 +2831,6 @@
                             break;
                     }
                 }
-
             }
 
             if (displayFog)
@@ -2929,7 +2869,6 @@
 
             if (displayLights)
             {
-
                 if (ambientLight.Count == 0)
                 {
                     if (globalAmbientLight != null)
@@ -3138,8 +3077,6 @@
             }
         }
 
-
-
         public bool DisplayParticleEffects
         {
             get
@@ -3256,7 +3193,6 @@
             }
         }
 
-
         public float CameraNear
         {
             get
@@ -3372,7 +3308,6 @@
                 return displayPointLightCircles;
             }
         }
-
 
         public bool CameraAboveTerrain
         {
@@ -3515,7 +3450,6 @@
                 }
                 if (positionYTextBox.Text != null && !String.Equals(positionYTextBox.Text, "") && !String.Equals(positionYTextBox.Text, " "))
                 {
-
                     if (!float.TryParse(positionYTextBox.Text, out y))
                     {
                         y = 0;
@@ -3558,7 +3492,6 @@
                 }
                 if (positionYTextBox.Text != null && !String.Equals(positionYTextBox.Text, "") && !String.Equals(positionYTextBox.Text, " "))
                 {
-
                     if (!float.TryParse(positionYTextBox.Text, out y))
                     {
                         y = 0;
@@ -3573,7 +3506,6 @@
                 }
 
                 Vector3 v = new Vector3(x, y, z);
-
 
                 if ((SelectedPositionObject is StaticObject || SelectedPositionObject is Waypoint || SelectedPositionObject is PointLight || SelectedPositionObject is MPPoint) && SelectedPositionObject.Display != null && SelectedPositionObject.Display.Position != v)
                 {
@@ -3792,7 +3724,7 @@
             }
         }
 
-        #endregion //Rotation Panel
+        #endregion Rotation Panel
 
         #region Orientation Panel
 
@@ -3805,17 +3737,15 @@
             }
         }
 
-
         //protected void UpdateOrientationFromTrackBars(object sender, EventArgs e)
         //{
-        //    if (SelectedOrientationObject != null && (orientationRotationTrackBar.Value != 
-        //        (int) Math.Round(SelectedOrientationObject.Azimuth) || inclinationTrackbar.Value != 
+        //    if (SelectedOrientationObject != null && (orientationRotationTrackBar.Value !=
+        //        (int) Math.Round(SelectedOrientationObject.Azimuth) || inclinationTrackbar.Value !=
         //        (int) Math.Round(SelectedOrientationObject.Zenith)))
         //    {
-        //        SetObjectOrientationWithCommand(orientationRotationTrackBar.Value, inclinationTrackbar.Value); 
+        //        SetObjectOrientationWithCommand(orientationRotationTrackBar.Value, inclinationTrackbar.Value);
         //    }
         //}
-
 
         protected void inclinationTrackbar_MouseUp(object sender, MouseEventArgs e)
         {
@@ -4014,9 +3944,9 @@
         private static int uniqueIDCount = 0;
 
         /// <summary>
-        /// The Axiom engine requires that entities and 
+        /// The Axiom engine requires that entities and
         /// GetUniqueName() provides a mechanism for the application to create unique names for
-        /// objects that will be placed in the 3d world, while not exposing 
+        /// objects that will be placed in the 3d world, while not exposing
         /// </summary>
         /// <param name="moduleName"></param>
         /// <param name="objectName"></param>
@@ -4045,7 +3975,7 @@
             {
                 results = q.Execute();
             }
-            catch(Exception e)
+            catch (Exception e)
             {
                 log.DebugFormat("Exception in PickTerrain:\r\n{0)", e.ToString());
             }
@@ -4075,7 +4005,6 @@
             }
             else
             {
-
                 return Vector3.Zero;
             }
         }
@@ -4112,9 +4041,6 @@
             return null;
         }
 
-
-
-
         public IWorldObject PickObjectByTriangle(int x, int y)
         {
             Axiom.Core.RaySceneQuery q = scene.CreateRayQuery(camera.GetCameraToViewportRay((float)x / (float)window.Width,
@@ -4137,7 +4063,6 @@
 
         public bool PickEntityTriangle(int x, int y, out Vector3 pos)
         {
-
             Axiom.Core.RaySceneQuery q = scene.CreateRayQuery(camera.GetCameraToViewportRay((float)x / (float)window.Width,
                 (float)y / (float)window.Height));
 
@@ -4158,10 +4083,8 @@
             }
         }
 
-
         public Vector3 ObjectPlacementLocation(Vector3 objPosition)
         {
-
             Ray pointRay = new Ray(new Vector3(objPosition.x, camera.Position.y, objPosition.z), Vector3.NegativeUnitY);
             Axiom.Core.RaySceneQuery q = scene.CreateRayQuery(pointRay);
             q.QueryMask = (ulong)Axiom.SceneManagers.Multiverse.RaySceneQueryType.AllEntityTriangles;
@@ -4207,7 +4130,6 @@
 
         public string PickTriangleAndTerrain(int x, int y)
         {
-
             string s = "Terrain: " + PickTerrain(x, y).ToString();
             Vector3 pos;
             if (PickEntityTriangle(x, y, out pos))
@@ -4215,8 +4137,6 @@
             return s;
         }
 
-
-
         #endregion Picking Methods
 
         #region StatusBar Access Methods
@@ -4235,7 +4155,7 @@
             statusStrip1.Items.Remove(item);
         }
 
-        #endregion // StatusBar Access Methods
+        #endregion StatusBar Access Methods
 
         #region Missing Asset List System
 
@@ -4407,7 +4327,6 @@
             }
         }
 
-
         public void CollectionButton_clicked(object sender, EventArgs e)
         {
             List<IObjectChangeCollection> changeObjList = new List<IObjectChangeCollection>();
@@ -4428,7 +4347,6 @@
                         undoRedo.PushCommand(commandInstance);
                     }
                 }
-
             }
         }
 
@@ -4462,7 +4380,6 @@
             }
         }
 
-
         private float CameraZenith
         {
             get
@@ -4498,7 +4415,6 @@
                 }
             }
         }
-
 
         private void PositionCameraToObject(IWorldObject obj)
         {
@@ -4547,7 +4463,6 @@
                 camera.LookAt(objLoc);
             }
         }
-
 
         private bool canExit(String msg)
         {
@@ -4566,7 +4481,6 @@
                         return false;
                     case DialogResult.No:
                         break;
-
                 }
             }
             return true;
@@ -4576,7 +4490,6 @@
         {
             quit = canExit("You have unsaved changes, would you like to save the file before you exit?");
         }
-
 
         private void recentFilesToolStripMenuItem_MouseEnter(object sender, EventArgs e)
         {
@@ -4656,7 +4569,6 @@
 
         private void displayParticleEffectsToolStripMenuItem_Click(object sender, EventArgs e)
         {
-
             DisplayParticleEffects = !DisplayParticleEffects;
             if (worldRoot != null)
             {
@@ -4695,7 +4607,6 @@
             {
                 if (!DisplayBoundaryMarkers && !DisplayMarkerPoints && !DisplayPointLightMarker)
                 {
-
                     disableAllMarkers = true;
                 }
             }
@@ -4795,7 +4706,6 @@
         {
             displayTerrainDecals = !displayTerrainDecals;
         }
-
 
         private void newWorldToolStripMenuItem_Click(object sender, EventArgs e)
         {
@@ -4873,7 +4783,6 @@
             {
                 if (mouseSelectObject)
                 {
-
                     if (hitObject != null)
                     {
                         if (SelectedObject.Count > 0)
@@ -4930,10 +4839,8 @@
                 {
                     WorldTreeView.AddSelectedNode(hitObject.Node);
                 }
-
-            }
-        }
-
+            }
+        }
 
         private void mouseDownTimerEvent(object source, EventArgs e)
         {
@@ -4981,7 +4888,6 @@
             }
         }
 
-
         private void axiomControl_MouseUp(object sender, MouseEventArgs e)
         {
             Keys key = Keys.None;
@@ -5061,8 +4967,6 @@
             mouseWheelDelta += e.Delta;
         }
 
-
-
         private void treeView_KeyDown(object sender, KeyEventArgs e)
         {
             EventObject eo = commandMapping.GetMatch(e.Modifiers, e.KeyCode, "down", "treeView");
@@ -5073,11 +4977,8 @@
             }
         }
 
-
         #region WorldEditor control events
 
-
-
         private void worldEditorTakeScreenShotOn(object sender, EventArgs e)
         {
             takeScreenShot = true;
@@ -5129,7 +5030,6 @@
 
         private void editMenuControlMappingEditorItem_clicked(object sender, EventArgs e)
         {
-
             UserCommandMapping workingCopy = commandMapping.Clone();
             using (UserCommandEditor dialog = new UserCommandEditor(workingCopy, Config.MouseCapableContexts))
             {
@@ -5183,7 +5083,6 @@
 
         private void axiomCameraMoveSpeedUp(object sender, EventArgs e)
         {
-
             camSpeed += camSpeedIncrement;
             if (accelerateCamera)
             {
@@ -5232,20 +5131,17 @@
             incrementSpeedTimer.Start();
         }
 
-
         private void axiomCameraMoveSpeedDownStop(object sender, EventArgs e)
         {
             incrementSpeedTimer.Stop();
             incrementSpeedTimer.Enabled = false;
         }
 
-
         private void axiomToggleAccelerate(object sender, EventArgs e)
         {
             accelerateCamera = !accelerateCamera;
             setToolStripAccelSpeedDropDownMenu();
         }
-
 
         private void setToolStripMWMDropDownMenu()
         {
@@ -5277,7 +5173,6 @@
                 cameraSpeedDropDownPreset2MenuItem.Visible = false;
                 cameraSpeedDropDownPreset3MenuItem.Visible = false;
                 cameraSpeedDropDownPreset4MenuItem.Visible = false;
-
             }
             else
             {
@@ -5322,14 +5217,12 @@
             incrementAccelTimer.Start();
         }
 
-
         private void axiomCameraAccelerateUpStop(object sender, EventArgs e)
         {
             incrementAccelTimer.Stop();
             incrementAccelTimer.Enabled = false;
             incrementAccelTimer.Tick -= axiomCameraAccelerateUp;
         }
-
 
         private void axiomCameraAccelerateDown(object sender, EventArgs e)
         {
@@ -5364,8 +5257,6 @@
             }
         }
 
-
-
         private void axiomCameraAccelerateDownStop(object sender, EventArgs e)
         {
             incrementAccelTimer.Stop();
@@ -5406,7 +5297,6 @@
         private void axiomMoveCameraRight(object sender, EventArgs e)
         {
             moveRight = true;
-
         }
 
         private void axiomMoveCameraRightStop(object sender, EventArgs e)
@@ -5424,8 +5314,6 @@
             moveCameraDown = false;
         }
 
-
-
         private void axiomTurnCameraLeft(object sender, EventArgs e)
         {
             turnCameraLeft = true;
@@ -5437,7 +5325,6 @@
             turnCameraLeft = false;
         }
 
-
         private void axiomTurnCameraRight(object sender, EventArgs e)
         {
             turnCameraRight = true;
@@ -5459,7 +5346,6 @@
         {
             turnCameraDown = false;
         }
-
 
         private void axiomTurnCameraUp(object sender, EventArgs e)
         {
@@ -5660,7 +5546,6 @@
             mWMMenuItemPreset4.Font = new Font(mWMMenuItemPreset4.Font, FontStyle.Bold); ;
         }
 
-
         public MouseButtons MouseSelectButton
         {
             get
@@ -5670,7 +5555,6 @@
         }
 
         #endregion Axiom window control events
-
 
         #region Tree View control events
 
@@ -6099,7 +5983,6 @@
             }
         }
 
-
         private void yDownButton_mouseDown(object sender, MouseEventArgs e)
         {
             if (SelectedPositionObject != null)
@@ -6139,7 +6022,6 @@
             }
         }
 
-
         private void zDownButton_mouseDown(object sender, MouseEventArgs e)
         {
             if (SelectedPositionObject != null)
@@ -6277,7 +6159,6 @@
             positionPanelButtonMouseDownTimer = null;
             UpdatePositionFromPanel();
         }
-
 
         private void positionPanelButtonMouseDownTimer_tick(object sender, EventArgs e)
         {
@@ -6467,7 +6348,6 @@
             cameraTerrainFollow = !cameraTerrainFollow;
         }
 
-
         private void designateAssetRepositoryMenuItem_Click(object sender, EventArgs e)
         {
             DesignateRepository(true);
@@ -6535,7 +6415,6 @@
                 Root.Instance.MaxFramesPerSecond = int.Parse(maxFPS.ToString());
                 activeFps = Root.Instance.MaxFramesPerSecond;
             }
-
         }
 
         /// <summary>
@@ -6734,7 +6613,6 @@
 
         private void cutToolStripMenuItemClicked_Clicked(object sender, EventArgs e)
         {
-
             bool dontCut = false;
             foreach (IWorldObject obj in SelectedObject)
             {
@@ -6775,7 +6653,6 @@
             }
         }
 
-
         private void editMenuPreferencesItem_clicked(object sender, EventArgs e)
         {
             object ret;
@@ -7057,7 +6934,6 @@
                     dlg.CameraAccelerationIncrementTextBoxAsFloat = Config.DefaultCamAccelRateIncrement / 1000f;
                 }
 
-
                 ret = Registry.GetValue(Config.WorldEditorBaseRegistryKey, "PresetCameraAccelRate1", (object)(Config.DefaultPresetCamAccel1));
                 if (ret != null)
                 {
@@ -7155,7 +7031,7 @@
                 {
                     dlg.Preset4MWMTextBoxAsFloat = Config.DefaultPresetMWM4;
                 }
-                // Show the dialog and if the dialog returns with an ok, set the registry settings and 
+                // Show the dialog and if the dialog returns with an ok, set the registry settings and
                 // make them the current settings.
 
                 DialogResult result;
@@ -7295,7 +7171,6 @@
             }
         }
 
-
         public List<WorldTreeNode> SelectedNodes
         {
             get
@@ -7388,6 +7263,14 @@
                 activeFps = Root.Instance.MaxFramesPerSecond;
                 Root.Instance.MaxFramesPerSecond = 3;
             }
+        }
+
+        private void btnDebugWorld_Click(object sender, EventArgs e)
+        {
+        }
+
+        private void worldEditor_debugworld()
+        {
         }
     }