Added swing and gate function

I have added swing and gate function to the code. I have to do some work on it, but basically, it works fine.

Advertisements