Add monitor.c monitor.h sources