Refactored: updated Client and server side method calls with status return type.
Refactored: Updated client server methods fir Gate opening and closing.