Preparing sighandlers and triggers
Moving gpio variables to global, preparing trigger
Preparing signal handler