fixing getHeartbeat method to return heartbeat value instead of interval
fixing getHeartbeat method to return heartbeat value instead of interval