Misc. Changes

Added while loop in handle() method.
The server/client works without any time.sleep()
Adding add_trigger() method