Added id to monitor

This adds an id to the monitor struct as it simplifies a few things down the line.