Refactored GAte.cs
Added AutoSave property for Gate