fixed monitrc configuring
Makefile: added clean target for all subdirs
configurable monitrc file
added code so that db_write kills stuck instances