Swing functionality with UI for controlling swing added
Changed default value of swingRatio and added spacers where necessary
Optimized call to get swing ratio
cleaning up UI
Cleaning up UI..