House keeping and licensing.
House keeping and licensing.

--- a/KerbalEngineer/BuildEngineer/BuildButton.cs
+++ b/KerbalEngineer/BuildEngineer/BuildButton.cs
@@ -11,6 +11,7 @@
     public class BuildButton : MonoBehaviour
     {
         #region Fields
+
         private Rect _position = new Rect(265f, 0f, 50f, 45f);
         private GUIStyle _tooltipTitleStyle, _tooltipInfoStyle;
         private Texture2D _normal = new Texture2D(50, 45, TextureFormat.RGBA32, false);

--- a/KerbalEngineer/CelestialBodies.cs
+++ b/KerbalEngineer/CelestialBodies.cs
@@ -1,4 +1,8 @@
-using System.Collections.Generic;
+// Name:    Kerbal Engineer Redux
+// Author:  CYBUTEK
+// License: Attribution-NonCommercial-ShareAlike 3.0 Unported
+
+using System.Collections.Generic;
 
 namespace KerbalEngineer
 {

--- a/KerbalEngineer/EngineerGlobals.cs
+++ b/KerbalEngineer/EngineerGlobals.cs
@@ -9,6 +9,8 @@
 {
     public class EngineerGlobals
     {
+        #region Properties
+
         /// <summary>
         /// Current version of the Kerbal Engineer assembly.
         /// </summary>
@@ -59,12 +61,18 @@
             }
         }
 
+        #endregion
+
+        #region Methods
+
         private static int _windowID = int.MaxValue;
         public static int GetNextWindowID()
         {
             _windowID--;
             return _windowID;
         }
+
+        #endregion
     }
 }
 

--- a/KerbalEngineer/Extensions/DoubleExtensions.cs
+++ b/KerbalEngineer/Extensions/DoubleExtensions.cs
@@ -1,7 +1,6 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+// Name:    Kerbal Engineer Redux
+// Author:  CYBUTEK
+// License: Attribution-NonCommercial-ShareAlike 3.0 Unported
 
 namespace KerbalEngineer.Extensions
 {

--- a/KerbalEngineer/Extensions/PartExtensions.cs
+++ b/KerbalEngineer/Extensions/PartExtensions.cs
@@ -1,4 +1,8 @@
-using System;
+// Name:    Kerbal Engineer Redux
+// Author:  CYBUTEK
+// License: Attribution-NonCommercial-ShareAlike 3.0 Unported
+
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using UnityEngine;

--- a/KerbalEngineer/Settings/SettingsList.cs
+++ b/KerbalEngineer/Settings/SettingsList.cs
@@ -12,14 +12,20 @@
     [Serializable]
     public class SettingsList
     {
-        public List<Setting> Settings = new List<Setting>();
+        #region Fields
+
+        private List<Setting> _settings = new List<Setting>();
+
+        #endregion
+
+        #region Public Methods
 
         /// <summary>
         /// Add a setting into this settings list.
         /// </summary>
         public void AddSetting(string name, object value)
         {
-            foreach (Setting setting in Settings)
+            foreach (Setting setting in _settings)
             {
                 if (setting.Name == name)
                 {
@@ -28,7 +34,7 @@
                 }
             }
 
-            Settings.Add(new Setting(name, value));
+            _settings.Add(new Setting(name, value));
         }
 
         /// <summary>
@@ -36,7 +42,7 @@
         /// </summary>
         public object GetSetting(string name, object defaultValue)
         {
-            foreach (Setting setting in Settings)
+            foreach (Setting setting in _settings)
             {
                 if (setting.Name == name)
                     return setting.Value;
@@ -45,6 +51,10 @@
             AddSetting(name, defaultValue);
             return defaultValue;
         }
+
+        #endregion
+
+        #region Static Methods
 
         /// <summary>
         /// Creates a settings list from an existing file, or returns a blank settings list object.
@@ -77,6 +87,8 @@
             }
             catch { throw new Exception("Could not save settings to file."); }
         }
+
+        #endregion
     }
 }
 

--- a/KerbalEngineer/Simulation/PartSim.cs
+++ b/KerbalEngineer/Simulation/PartSim.cs
@@ -1,4 +1,4 @@
-// Kerbal Engineer Redux
+// Name:    Kerbal Engineer Redux
 // Author:  CYBUTEK
 // License: Attribution-NonCommercial-ShareAlike 3.0 Unported
 //

--- a/KerbalEngineer/Simulation/ResourceContainer.cs
+++ b/KerbalEngineer/Simulation/ResourceContainer.cs
@@ -1,4 +1,4 @@
-// Kerbal Engineer Redux
+// Name:    Kerbal Engineer Redux
 // Author:  CYBUTEK
 // License: Attribution-NonCommercial-ShareAlike 3.0 Unported
 

--- a/KerbalEngineer/Simulation/Simulation.cs
+++ b/KerbalEngineer/Simulation/Simulation.cs
@@ -1,4 +1,4 @@
-// Kerbal Engineer Redux
+// Name:    Kerbal Engineer Redux
 // Author:  CYBUTEK
 // License: Attribution-NonCommercial-ShareAlike 3.0 Unported
 //

--- a/KerbalEngineer/Simulation/SimulationManager.cs
+++ b/KerbalEngineer/Simulation/SimulationManager.cs
@@ -1,4 +1,8 @@
-using System;
+// Name:    Kerbal Engineer Redux
+// Author:  CYBUTEK
+// License: Attribution-NonCommercial-ShareAlike 3.0 Unported
+
+using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Threading;
@@ -8,6 +12,8 @@
 {
     public class SimulationManager
     {
+        #region Instance
+
         private static SimulationManager _instance;
         /// <summary>
         /// Gets the current instance of the simulation manager.
@@ -21,11 +27,19 @@
             }
         }
 
+        #endregion
+
+        #region Fields
+
         private bool _simRequested = false;
         private bool _simRunning = false;
         private Stopwatch _timer = new Stopwatch();
         private long _millisecondsBetweenSimulations = 0;
         private int _numberOfStages = 0;
+
+        #endregion
+
+        #region Properties
 
         public Stage[] Stages { get; private set; }
         public Stage LastStage { get; private set; }
@@ -47,6 +61,10 @@
             }
         }
 
+        #endregion
+
+        #region Initialisation
+
         public SimulationManager()
         {
             Stages = new Stage[0];
@@ -55,6 +73,10 @@
             Gravity = 9.81d;
             Atmosphere = 0d;
         }
+
+        #endregion
+
+        #region Updating
 
         public void RequestSimulation()
         {
@@ -78,6 +100,10 @@
                 }
             }
         }
+
+        #endregion
+
+        #region Processing
 
         private void StartSimulation()
         {
@@ -117,6 +143,8 @@
 
             _simRunning = false;
         }
+
+        #endregion
     }
 }
 

--- a/KerbalEngineer/Simulation/Stage.cs
+++ b/KerbalEngineer/Simulation/Stage.cs
@@ -1,4 +1,4 @@
-// Kerbal Engineer Redux
+// Name:    Kerbal Engineer Redux
 // Author:  CYBUTEK
 // License: Attribution-NonCommercial-ShareAlike 3.0 Unported
 

 Binary files a/Output/KerbalEngineer/KerbalEngineer.dll and b/Output/KerbalEngineer/KerbalEngineer.dll differ