Added reloadmonitor command and minor changes.