Refectored deleting so now supports multiple levels of source files

also improved heartbeat manager