Added control gui, removed unused imports and variables