+ making heartbeat interval configurable & unit test provided
+ added totalmem info to the heartbeat