More updates

- updates of multiple functions in g_trigger.c
- added new logger in g_trigger.c